package org.jeecg.common.es.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.Setting;

import java.io.Serializable;

@Data
@Setting(settingPath = "elasticsearch/settings.json")
public class EsEntity implements Serializable {
    @Id
    protected String id;

    @Field(name = "spider_time")
    private Long spiderTime;

    public static class Constants {
        public static final String SPIDER_TIME_FIELD = "spider_time";
    }


}
